#pragma once
#include <iostream>
#include <string>
using namespace std;

class Glosor
{
private:
	string ForeignWord;
	string CorrectWord;
	string WrittenWord;

public:

	Glosor()
	{
		CorrectWord = " ";
		ForeignWord = " ";
		WrittenWord = " ";
	}

	Glosor(string ForeignWord, string CorrectWord)
	{
		this->CorrectWord = CorrectWord;
		this->ForeignWord = ForeignWord;
	}

	void CheckWord()
	{
		cout << ForeignWord << ": ";
		getline(cin, WrittenWord);
		if (WrittenWord.compare(CorrectWord) == 0)
		{
			cout << "Correct answer";
		}
		else
		{
			cout << "Wrong answer, the correct answer was: " << CorrectWord;
		}

	}

	~Glosor()
	{
	}
};

